package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.MaterialTagRelation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface MaterialTagRelationMapper {
    int deleteById(@Param("id") Long id);

    int insert(MaterialTagRelation record);

    int insertSelective(MaterialTagRelation record);

    MaterialTagRelation selectById(@Param("id") Long id);

    MaterialTagRelation selectByMaterialIdAndTagId(@Param("materialId") Long materialId, @Param("tagId") Long tagId);

    int updateByIdSelective(MaterialTagRelation record);

    int updateById(MaterialTagRelation record);
}